import request from '@/utils/request'

// 查询密保录入列表
export function listCaManager(query) {
  return request({
    url: '/receipt/caManager/list',
    method: 'get',
    params: query
  })
}

// 查询密保录入详细
export function getCaManager(id) {
  return request({
    url: '/receipt/caManager/' + id,
    method: 'get'
  })
}

// 新增密保录入
export function addCaManager(data) {
  return request({
    url: '/receipt/caManager',
    method: 'post',
    data: data
  })
}

// 修改密保录入
export function updateCaManager(data) {
  return request({
    url: '/receipt/caManager',
    method: 'put',
    data: data
  })
}

// 删除密保录入
export function delCaManager(id) {
  return request({
    url: '/receipt/caManager/' + id,
    method: 'delete'
  })
}

// 导出密保录入
export function exportCaManager(query) {
  return request({
    url: '/receipt/caManager/export',
    method: 'get',
    params: query
  })
}